import request from '@/utils/request'

// 查询生产厂家列表
export function selectAll(query) {
  return request({
    url: '/drug/manufacturer/selectAll',
    method: 'get',
    params: query
  })
}


// 新增生产厂家
export function addManufacturer(data) {
  return request({
    url: '/drug/manufacturer/addManufacturer',
    method: 'post',
    data: data
  })
}



// 根据id查询单个生产厂家
export function selectOne(dmid) {
  return request({
    url: '/drug/manufacturer/selectOne?dmid=' + dmid,
    method: 'get'
  })
}


// 修改厂家信息
export function updateManufacturer(data) {
  return request({
    url: '/drug/manufacturer/updateManufacturer',
    method: 'put',
    data: data
  })
}


// 删除生产厂家
export function deleteManufacturer(dmids) {
  return request({
    url: '/drug/manufacturer/deleteManufacturer?dmids=' + dmids,
    method: 'delete'
  })
}
